<%@page import="com.zhiyou.bbs01.User"%>
<%@page import="com.zhiyou.bbs01.UserDao"%>
<%@page import="com.zhiyou.bbs01.Title"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>title_top</title>
<link rel="stylesheet" type="text/css" href="/bbs/css/title_2.css"/>
<script type="text/javascript">
       function myCheck_1()
            {
               for(var i=0;i<document.form1.elements.length-1;i++)
               {
            	   var str = document.form1.elements[i].value;
                  if(str.replace(/^(\s|\u00A0)+/,'').replace(/(\s|\u00A0)+$/,'') == "")
                  {
                     alert("当前表单不能有空项");
                     document.form1.elements[i].focus();
                     return false;
                  }
               }
               return true;
            }
</script>
</head>
<body>
	<%
		Title t = (Title)request.getSession().getAttribute("clickTitle");
		UserDao ud = new UserDao();
		User u = ud.selectOne_1(t.getUid());
	%>
		<table style="margin: auto;">
			<caption><font size="5px"><%=t.getThead() %></font></caption>
			<tr>
				<td class="all_td_th1" style="text-align: right;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;作者:<a href="/bbs/userTitle_servlet?uid=<%=String.valueOf(u.getUid()) %>" > <%=u.getUname() %></a>&nbsp;&nbsp;&nbsp;&nbsp;日期: <%=t.getTcreate_time() %>  </td>
			</tr>
			<tr>
				<td class="all_td_th1"><textarea disabled="disabled" class="text_content1" rows="9" cols="57"><%=t.getTcontent() %></textarea></td>
			</tr>
		</table>
		
		
		<form style="float: right;" action="/bbs/titleXu_servlet?tid=<%=t.getTid() %>" onsubmit="history.go(0)" method="post">
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><%=t.getTxu() %></font><input type="submit" value="踩"/>
		</form>
		<form style="float: right;" action="/bbs/titleZan_servlet?tid=<%=t.getTid() %>" onsubmit="history.go(0)" method="post">
			<font color="red"><%=t.getTzan() %></font><input type="submit" value="赞"/>
		</form>
		<div class="div_comment">
			<form name="form1" action="/bbs/Comment_servlet?tid=<%=t.getTid() %>" onsubmit="return myCheck_1()" method="post">
					<font color="red" class="font_select" >我也说一句:</font><input type="text" class="input_text" name="mcontent"/>
					<input class="input_insert" type="submit" value="发送"/>
			</form>
		</div>
</body>
</html>